<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>01ECharts快速入门</title>
		<script src="../lib/echarts.min.js"></script>
	</head>
	<body>
		<div style="width: 600px; height: 400px"></div>
		<script>
			var mCharts = echarts.init(document.querySelector('div'))
			var option = {
				xAxis: {
					type: 'category',
					data: ['小明', '小红', '小青'],
				},
				yAxis: {
					type: 'value',
				},
				series: [{ name: '语文', type: 'bar', data: [75, 82, 52] }],
			}
            mCharts.setOption(option)
		</script>
	</body>
</html>
